/**
 * Created by Administrator on 2017-04-07.
 */
// import _ from 'lodash'
const setRoleId = 'setRoleId'
const setUserName = 'setUserName'

const setIP = 'setIP'

const setMsg = 'setMsg'
const setRet = 'setRet'
const setShowMsg = 'setShowMsg'
// 代理商商家列表页面
const setKA = 'setKA'
const setKAE = 'setKAE'
const setKAName = 'setKAName'
const setKAH = 'setKAH'
const setKAS = 'setKAS'
const setKAManagementType = 'setKAManagementType'
// 管理员商家列表页面
const setKM = 'setKM'
const setKMS = 'setKMS'
const setKMH = 'setKMH'
const setKMU = 'setKMU'
const setKMCompanyName = 'setKMCompanyName'
const setKMManagementType = 'setKMManagementType'
// 代理商库存管理
// const setSA = 'setSA'
// 管理员库存管理
const setSM = 'setSM'
const setSMAI = 'setSMAI'
const setSMAN = 'setSMAN'
// 全部设置
const setAP = 'setAP'

// 全局获取一次经营类型
const setManageList = 'setManageList'

const setHasLogin = 'setHasLogin'
const setShowPageNum = 'setShowPageNum'
const setAvatar = 'setAvatar'
const setCompanyName = 'setCompanyName'
const setCompanyCode = 'setCompanyCode'
const setHeadShopInfo = 'setHeadShopInfo'
const setShowRefreshPage = 'setShowRefreshPage'
// 代理商Id 商家列表
const setAgentId = 'setAgentId'
const setAgentIdFY = 'setAgentIdFY'
const setManageRoleType = 'setManageRoleType'
// 娱加云总店
const setPageHeadShop = 'setPageHeadShop'
const setReturnBackUrl = 'setReturnBackUrl'
const setSmsToken = 'setSmsToken'
// 设置 二级 菜单 nowPage
const setSecondNowPage = 'setSecondNowPage'
// 全局 页面 调转
const setMenuActiveName = 'setMenuActiveName'
const setUpData = 'setUpData'
const setManageArr = 'setManageArr'
const setCurrRow = 'setCurrRow'
const setAllManageList = 'setAllManageList'

export default {
    [setAllManageList] (state, payload) {
        state.allManageList = payload.item
    },
    [setManageArr] (state, payload) {
        state.manageArr = payload.item
    },
    [setUpData] (state, payload) {
        state.isUpData = payload
    },
    [setManageList] (state, payload) {
        state.typeList = payload.item
    },
    [setRoleId] (state, payload) {
        state.roleId = payload.item
    },
    [setUserName] (state, payload) {
        state.userName = payload.item
    },

    [setIP] (state, payload) {
        state.IP = payload.item
    },

    [setMsg] (state, payload) {
        state.msg = payload.item
    },
    [setRet] (state, payload) {
        state.ret = payload.item
    },
    [setShowMsg] (state, payload) {
        state.showMsg = payload.item
    },

    [setKA] (state, payload) {
        state.page1KTVAgent = payload.item
    },
    [setKAE] (state, payload) {
        state.page1KTVAgentEdit = payload.item
    },
    [setKAName] (state, payload) {
        state.page1KTVAgentName = payload.item
    },
    [setKAH] (state, payload) {
        state.page1KTVAgentHistory = payload.item
    },
    [setKAS] (state, payload) {
        state.page1KTVAgentService = payload.item
    },
    [setKAManagementType] (state, payload) {
        state.page1KTVAgentManagementType = payload.item
    },

    [setKM] (state, payload) {
        state.page1KTVManage = payload.item
    },
    [setKMS] (state, payload) {
        state.page1KTVManageService = payload.item
    },
    [setKMH] (state, payload) {
        state.page1KTVManageHistory = payload.item
    },
    [setKMU] (state, payload) {
        state.page1KTVManageUpdate = payload.item
    },
    [setKMCompanyName] (state, payload) {
        state.page1KTVManageCompanyName = payload.item
    },
    [setKMManagementType] (state, payload) {
        state.page1KTVManageManagementType = payload.item
    },

    // [setSA] (state, payload) {
    //     state.page2StoreAgent = payload.item
    // },

    [setSM] (state, payload) {
        state.page2StoreManage = payload.item
    },
    [setSMAI] (state, payload) {
        state.page2StoreManageAgentId = payload.item
    },
    [setSMAN] (state, payload) {
        state.page2StoreManageAgentName = payload.item
    },

    [setAP] (state, payload) {
        state.page1KTVAgent = 0
        state.page1KTVManage = 0
        state.page2StoreAgent = 0
        state.page2StoreManage = 0
        state.page3ActionLog = 0
        state.page4ApkManage = 0
    },
    [setCurrRow] (state, payload) {
        state.currRow = payload.item
    },
    [setHasLogin] (state, payload) {
        state.hasLogin = payload.item
    },
    [setShowPageNum] (state, payload) {
        state.showPageNum = payload.item
    },
    [setAvatar] (state, payload) {
        state.avatar = payload.item
    },
    [setCompanyName] (state, payload) {
        state.companyName = payload.item
    },
    [setCompanyCode] (state, payload) {
        state.companyCode = payload.item
    },
    [setHeadShopInfo] (state, payload) {
        state.headShopInfo = payload.item
    },
    [setShowRefreshPage] (state, payload) {
        state.showRefreshPage = payload.item
    },
    [setAgentId] (state, payload) {
        state.agentId = payload.item
    },
    [setAgentIdFY] (state, payload) {
        state.agentIdFY = payload.item
    },
    [setManageRoleType] (state, payload) {
        state.manageRoleType = payload.item
    },
    [setPageHeadShop] (state, payload) {
        state.page17HeadShop = payload.item
    },
    [setReturnBackUrl] (state, payload) {
        state.returnBackUrl = payload.item
    },
	[setSmsToken] (state, payload) {
	    state.smsToken = payload.item
	},
    [setSecondNowPage] (state, payload) {
        state.secondNowPage = payload.item
    },
    [setMenuActiveName] (state, payload) {
        state.menuActiveName = payload.item
    }
}
